package com.rabbit.eap.framework.shiro.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * @projectName eap
 * @packageName com.rabbit.eap.framework.shiro.vo
 * @className LoginSysUserVO
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/4/14 21:31
 * <p>Description: LoginSysUserVO
 * 登录用户对象
 * </p>

 */
@Data
@Accessors(chain = true)
public class LoginSysUserVO implements Serializable {

    private static final long serialVersionUID = 2515256603320160757L;
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("性别，0：女，1：男，默认1")
    private Integer gender;

    @ApiModelProperty("状态，0：禁用，1：启用")
    private String status;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("部门Id")
    private Long deptId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("角色")
    private Set<String> roleIds;

    @ApiModelProperty("权限编码列表")
    private Set<String> permissions;

    @ApiModelProperty("角色列表")
    private List<LoginSysRoleVO> roles;
}
